NexusPi Git Node
variants/lilygo_t_echo/variant.cpp fc463eb4c579bbcd7340546e598044bd8345f3a5 (fc463eb4) Text, 1.79 KB
T8b949e/*
Copyright (c) 2014-2015 Arduino LLC. All right reserved.
Copyright (c) 2016 Sandeep Mistry All right reserved.
Copyright (c) 2018, Adafruit Industries (adafruit.com)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
Tff7b72#Tff7b72include T8b949e"variant.h"
Tff7b72#Tff7b72include T8b949e"nrf.h"
Tff7b72#Tff7b72include T8b949e"wiring_constants.h"
Tff7b72#Tff7b72include T8b949e"wiring_digital.h"
Tff7b72const Tffa657uint32_t Te6edf3g_ADigitalPinMapTb4b4b4[Tb4b4b4] Tff7b72= Tb4b4b4{
T8b949e// P0 - pins 0 and 1 are hardwired for xtal and should never be enabled
T79c0ff0xffTb4b4b4, T79c0ff0xffTb4b4b4, T79c0ff2Tb4b4b4, T79c0ff3Tb4b4b4, T79c0ff4Tb4b4b4, T79c0ff5Tb4b4b4, T79c0ff6Tb4b4b4, T79c0ff7Tb4b4b4, T79c0ff8Tb4b4b4, T79c0ff9Tb4b4b4, T79c0ff10Tb4b4b4, T79c0ff11Tb4b4b4, T79c0ff12Tb4b4b4, T79c0ff13Tb4b4b4, T79c0ff14Tb4b4b4, T79c0ff15Tb4b4b4, T79c0ff16Tb4b4b4, T79c0ff17Tb4b4b4, T79c0ff18Tb4b4b4, T79c0ff19Tb4b4b4, T79c0ff20Tb4b4b4, T79c0ff21Tb4b4b4, T79c0ff22Tb4b4b4, T79c0ff23Tb4b4b4, T79c0ff24Tb4b4b4, T79c0ff25Tb4b4b4, T79c0ff26Tb4b4b4, T79c0ff27Tb4b4b4, T79c0ff28Tb4b4b4, T79c0ff29Tb4b4b4, T79c0ff30Tb4b4b4, T79c0ff31Tb4b4b4,
T8b949e// P1
T79c0ff32Tb4b4b4, T79c0ff33Tb4b4b4, T79c0ff34Tb4b4b4, T79c0ff35Tb4b4b4, T79c0ff36Tb4b4b4, T79c0ff37Tb4b4b4, T79c0ff38Tb4b4b4, T79c0ff39Tb4b4b4, T79c0ff40Tb4b4b4, T79c0ff41Tb4b4b4, T79c0ff42Tb4b4b4, T79c0ff43Tb4b4b4, T79c0ff44Tb4b4b4, T79c0ff45Tb4b4b4, T79c0ff46Tb4b4b4, T79c0ff47Tb4b4b4}Tb4b4b4;
Tffa657void Td2a8ffinitVariantTb4b4b4(Tb4b4b4)
Tb4b4b4{
Te6edf3pinModeTb4b4b4(Te6edf3PIN_LED1Tb4b4b4, Te6edf3OUTPUTTb4b4b4)Tb4b4b4;
Te6edf3ledOffTb4b4b4(Te6edf3PIN_LED1Tb4b4b4)Tb4b4b4;
Te6edf3pinModeTb4b4b4(Te6edf3PIN_LED2Tb4b4b4, Te6edf3OUTPUTTb4b4b4)Tb4b4b4;
Te6edf3ledOffTb4b4b4(Te6edf3PIN_LED2Tb4b4b4)Tb4b4b4;
Te6edf3pinModeTb4b4b4(Te6edf3PIN_LED3Tb4b4b4, Te6edf3OUTPUTTb4b4b4)Tb4b4b4;
Te6edf3ledOffTb4b4b4(Te6edf3PIN_LED3Tb4b4b4)Tb4b4b4;
Tb4b4b4}
Tffa657void Td2a8ffvariant_shutdownTb4b4b4(Tb4b4b4)
Tb4b4b4{
T8b949e// To power off the T-Echo, the display must be set
T8b949e// as an input pin; otherwise, there will be leakage current.
Te6edf3pinModeTb4b4b4(Te6edf3PIN_EINK_CSTb4b4b4, Te6edf3INPUTTb4b4b4)Tb4b4b4;
Te6edf3pinModeTb4b4b4(Te6edf3PIN_EINK_DCTb4b4b4, Te6edf3INPUTTb4b4b4)Tb4b4b4;
Te6edf3pinModeTb4b4b4(Te6edf3PIN_EINK_RESTb4b4b4, Te6edf3INPUTTb4b4b4)Tb4b4b4;
Te6edf3pinModeTb4b4b4(Te6edf3PIN_EINK_BUSYTb4b4b4, Te6edf3INPUTTb4b4b4)Tb4b4b4;
Tb4b4b4}
Served by rngit 1.5.2 - Generated in 0.02s